package com.example.tanloadpic;

import android.net.Uri;
import android.widget.ImageView;

import static com.example.tanloadpic.utils.CommonUtils.stringToMd5;

public class RequestData {
    public Uri uri;
    int resourceId;
    ImageView imageView;
    public String key;
    public RequestCreator.CompressConfig mCompressConfig;

    public RequestData(Uri uri) {
        this.uri = uri;
        key =  stringToMd5(uri.toString());
    }

    public RequestData(int resourceId) {
        this.resourceId = resourceId;
        key = stringToMd5(Integer.toString(resourceId));
    }


}
